package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.ProductApportionmentMapper;
import com.isdepci.project.gasEmission.domain.ProductApportionment;
import com.isdepci.project.gasEmission.service.IProductApportionmentService;

/**
 * 产品分摊Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class ProductApportionmentServiceImpl implements IProductApportionmentService
{
    @Autowired
    private ProductApportionmentMapper productApportionmentMapper;

    /**
     * 查询产品分摊
     */
    @Override
    public ProductApportionment selectProductApportionmentById(Long id)
    {
        return productApportionmentMapper.selectProductApportionmentById(id);
    }

    /**
     * 查询产品分摊列表
     */
    @Override
    public List<ProductApportionment> selectProductApportionmentList(ProductApportionment productApportionment)
    {
        return productApportionmentMapper.selectProductApportionmentList(productApportionment);
    }

    /**
     * 新增产品分摊
     */
    @Override
    public int insertProductApportionment(ProductApportionment productApportionment)
    {
        return productApportionmentMapper.insertProductApportionment(productApportionment);
    }

    /**
     * 修改产品分摊
     */
    @Override
    public int updateProductApportionment(ProductApportionment productApportionment)
    {
        return productApportionmentMapper.updateProductApportionment(productApportionment);
    }

    /**
     * 批量删除产品分摊
     */
    @Override
    public int deleteProductApportionmentByIds(Long[] ids)
    {
        return productApportionmentMapper.deleteProductApportionmentByIds(ids);
    }

    /**
     * 删除产品分摊信息
     */
    @Override
    public int deleteProductApportionmentById(Long id)
    {
        return productApportionmentMapper.deleteProductApportionmentById(id);
    }
}
